Decentralized diagnostics and treatment